package com.baizhi.action;

import com.baizhi.entity.Question;
import com.baizhi.service.QuestionService;
import com.baizhi.service.impl.QuestionServiceImpl;

public class QuestionAction {
	private Question question;
	private int sid;
	private QuestionService qs=new QuestionServiceImpl();
	public String add(){
		qs.insert(question);
		return "toDesign";
	}
	public Question getQuestion() {
		return question;
	}
	public void setQuestion(Question question) {
		this.question = question;
	}
	public QuestionService getQs() {
		return qs;
	}
	public void setQs(QuestionService qs) {
		this.qs = qs;
	}
	public int getSid() {
		return sid;
	}
	public void setSid(int sid) {
		this.sid = sid;
	}
}
